<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j" template="layout/template.xhtml">

	<ui:define name="body">

		<h:form>
			<h:panelGrid columns="3">
				<h:outputText value="Ortalamasi su degerden buyuk olanlari getir :"
					style="font-size:large;" />
				<h:inputText value="#{companyManager.agno}"
					style="width:100px;height:27px;margin-left:20px;" />
				<a4j:commandButton value="AGNO'sina Gore"
					action="#{companyManager.internResultListAgno()}"
					reRender="sonucPanel" style="width:140px;margin-left:20px;height:30px;" />

				<h:outputText value="Su programlama dilini bilenleri getir :"
					style="font-size:large;" />
				<h:selectOneMenu value="#{companyManager.pl}" style="width:105px;height:30px;margin-left:20px;">
					<f:selectItems value="#{companyManager.selectItems}" />
				</h:selectOneMenu>
				<a4j:commandButton value="Programlama Diline Gore" 
					action="#{companyManager.internResultListPl()}"
					reRender="sonucPanel" style="width:140px;height:30px;margin-left:20px;" />
			</h:panelGrid>
		</h:form>

		<br />
		<br />
		<rich:panel id="sonucPanel">
			<f:facet name="header">
				<h:outputText value="Sonuclar..."></h:outputText>
			</f:facet>
			<h:form>
				<rich:dataGrid value="#{companyManager.internList}" var="intern"
					columns="1" width="600px">
					<rich:panel>
						<f:facet name="header">
							<h:outputText
								value="#{intern.userName} kullanici isimli stajyer bilgileri"></h:outputText>
						</f:facet>
						<h:panelGrid columns="2">
							<h:outputText value="Isim:" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.name}" />
							<h:outputText value="Soyisim:" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.surname}" />
							<h:outputText value="E-mail:" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.email}" />
							<h:outputText value="Universite:" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.university}" />
							<h:outputText value="Bolum" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.department}" />
							<h:outputText value="Telefon" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.telephone}" />
							<h:outputText value="Not Ortalamasi" styleClass="label"></h:outputText>
							<h:outputText value="#{intern.agno}" />
							<h:outputText value="Bildigi programlama dilleri"
								styleClass="label"></h:outputText>
							<rich:dataList var="pl" value="#{intern.languageList}" rows="10">
								<h:outputText value="#{pl.name}" />
								<br />
							</rich:dataList>

						</h:panelGrid>
					</rich:panel>
				</rich:dataGrid>
			</h:form>
		</rich:panel>

	</ui:define>
</ui:composition>
